<template>
  <div>
    <p :class={red_Str:bool}>动态Class</p>
  </div>
</template>

<script>
export default {
data() {
  return {
    bool:true
  }
},

}
</script>

<style>
.red_Str{
  color: red;
}
</style>